<!-- 机构预测（最近一年） -->
<template>
  <div class="table w1021 infoprofit_orgForecast">
    <div class="tableTh tableTr flex">
      <span class="tableTd w220 high">每股收益</span>
      <span class="tableTd w220 high">市盈率（%）</span>
      <span class="tableTd w220">
        最近一年实际
        <br />净资产收益率（%）
      </span>
      <span class="tableTd w220">
        最近一年实际营业收入
        <br />（万元）
      </span>
      <span class="tableTd w220">
        最近一年实际净利润
        <br />（万元）
      </span>
    </div>
    <div class="tableTr tableBody top flex" v-for="(item,index) in data" :key="index">
      <span class="orange tableTd w220">{{item.realEps|filterVal}}</span>
      <span class="orange tableTd w220">{{item.realPe|filterVal}}</span>
      <span class="orange tableTd w220">{{item.realRoe|filterVal}}</span>
      <span class="orange tableTd w220">{{item.realRevenue|filterVal("number")}}</span>
      <span class="orange tableTd w220">{{item.realNtinc|filterVal("number")}}</span>
    </div>
    <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
  </div>
</template>

<script>
import { number } from "../../script/api";
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (typeof ops == "number") {
        return number(ops, num);
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>